package com.yanqu.road.server.cmd.player;

import com.yanqu.road.entity.enums.ePlayerAttrType;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.AttributeModule;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_SECRET_VOLUME_GUIDE, desc = "密卷引导")
public class SecretVolumeGuideCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		player.getModule(AttributeModule.class).setAttribute(ePlayerAttrType.SecretVolumeGuide, 1);
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
